<template>
    <div style="display: flex;height: 50px;">
        <div style="width: 200px;">
            <h4>碳中和数字碳资产管理系统</h4>
        </div>
        <div style="flex: 1;"></div>
        <div>
            <el-dropdown>
                <span class="el-dropdown-link">
                    {{username}}<i class="el-icon-arrow-down el-icon--right"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>个人中心</el-dropdown-item>
                    <el-dropdown-item>退出登录</el-dropdown-item>                
                </el-dropdown-menu>
            </el-dropdown>
        </div>
    </div>
</template>
<script>
export default{
    data(){
        return{
            username:""
        }
    },
    mounted(){
        this.username=localStorage.getItem("username")
    }
}



</script>